#ifndef _STORAGE_H_
#define _STORAGE_H_

#ifdef __cplusplus
extern "C" {
#endif
extern char nvs_identify[];
extern char nvs_ssid[];
extern char nvs_pwd[];

uint8_t writeIntegerToNVS(char *key, int keyLen, int32_t inputValue);
uint8_t readIntegerFromNVS(char *key, int keyLen, int32_t* outputValue);
int writeConfigToNvs(char *key, int key_len, char *input_value, int value_len);
int readConfigFromNvs(char *key, int key_len, char *output_value, int value_max_len);
// void erase_esp32_keys(void);
void setConfigDefault(void);
void loadConfig(void);

#ifdef __cplusplus	
}
#endif
#endif
